.class Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;
.super Ljava/lang/Thread;
.source "NearbyStationActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->onClick(Landroid/view/View;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;


# direct methods
.method constructor <init>(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    .line 148
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;)Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;
    .locals 1
    .parameter

    .prologue
    .line 148
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    return-object v0
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    .line 150
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$2(Lcom/teewoo/app/bus/ui/NearbyStationActivity;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$7(Lcom/teewoo/app/bus/ui/NearbyStationActivity;I)V

    .line 153
    :try_start_0
    sget-wide v0, Lcom/teewoo/app/bus/ui/Home4StaticMap;->latitude:D

    .line 154
    sget-wide v2, Lcom/teewoo/app/bus/ui/Home4StaticMap;->longitude:D

    iget-object v4, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v4

    invoke-static {v4}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$1(Lcom/teewoo/app/bus/ui/NearbyStationActivity;)I

    move-result v4

    iget-object v5, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v5

    invoke-static {v5}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$2(Lcom/teewoo/app/bus/ui/NearbyStationActivity;)I

    move-result v5

    .line 153
    invoke-static/range {v0 .. v5}, Lcom/teewoo/app/bus/util/SearchUtil;->getNearByStation(DDII)Lcom/teewoo/app/bus/model/NearByBo;

    move-result-object v7

    .line 155
    .local v7, near:Lcom/teewoo/app/bus/model/NearByBo;
    invoke-virtual {v7}, Lcom/teewoo/app/bus/model/NearByBo;->getTotal()I

    move-result v0

    if-nez v0, :cond_0

    .line 176
    .end local v7           #near:Lcom/teewoo/app/bus/model/NearByBo;
    :goto_0
    return-void

    .line 158
    .restart local v7       #near:Lcom/teewoo/app/bus/model/NearByBo;
    :cond_0
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity;)Ljava/util/List;

    move-result-object v0

    invoke-virtual {v7}, Lcom/teewoo/app/bus/model/NearByBo;->getNearStation()Ljava/util/List;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 159
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v0

    new-instance v1, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1$1;

    invoke-direct {v1, p0, v7}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1$1;-><init>(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;Lcom/teewoo/app/bus/model/NearByBo;)V

    invoke-virtual {v0, v1}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->runOnUiThread(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 173
    .end local v7           #near:Lcom/teewoo/app/bus/model/NearByBo;
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 174
    .local v6, e:Ljava/lang/Exception;
    iget-object v0, p0, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5$1;->this$1:Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;->access$0(Lcom/teewoo/app/bus/ui/NearbyStationActivity$5;)Lcom/teewoo/app/bus/ui/NearbyStationActivity;

    move-result-object v0

    invoke-static {v0}, Lcom/teewoo/app/bus/ui/NearbyStationActivity;->access$4(Lcom/teewoo/app/bus/ui/NearbyStationActivity;)Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f080017

    invoke-static {v0, v1}, Lcom/teewoo/app/bus/util/ToastUtil;->showToastCenter(Landroid/content/Context;I)V

    goto :goto_0
.end method
